// 扫码相关API
import request from '@/utils/request'

// 扫码相关API
export const scanApi = {
  // 扫码获取物料信息
  scanMaterial(barcode) {
    return request({
      url: `/admin-api/wm/material/scan/${barcode}`,
      method: 'get'
    })
  },

  // 扫码获取库存信息
  scanInventory(barcode) {
    return request({
      url: `/admin-api/wm/inventory/scan/${barcode}`,
      method: 'get'
    })
  }
}

export default scanApi